package com.yswy.backstage.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 19401
 * @date 2022/6/6 17:09
 **/
@Data
public class RoleOptionReqVO extends GroupsReqVO {
    @NotNull(message = "ID不能为空", groups = UPDATE.class)
    private Integer id;
    @ApiModelProperty("角色名称")
    @NotEmpty(message = "角色名称 不能为空", groups = {CREATE.class, UPDATE.class})
    private String roleName;
    private Integer roleType;
    @ApiModelProperty("排序")
    @NotNull(message = "排序 不能为空", groups = {CREATE.class, UPDATE.class})
    private Integer orderBy;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("权限Ids")
    private List<Integer> permissionIds;
}
